﻿using Zhp.Entity.Message.Email;

namespace Zhp.IService.Message.Email
{
    public interface IEmailSender
    {
        public Task<bool> SendEmailAsync(string tplName, object emailData, string toAddress, string toName, string replyToAddress = null, string replyToName = null, IEnumerable<string> bcc = null, IEnumerable<string> cc = null, string attachmentFilePath = null, string attachmentFileName = null, int attachedDownloadId = 0, IDictionary<string, string> headers = null);
        Task<bool> SendEmailAsync(EmailAccount emailAccount, string subject, string body, 
        string toAddress, string toName, string replyToAddress = null, string replyToName = null,
        IEnumerable<string> bcc = null, IEnumerable<string> cc = null,
        string attachmentFilePath = null, string attachmentFileName = null,
        int attachedDownloadId = 0, IDictionary<string, string> headers = null);
    }
}
